package com.baizhi.object;

public class ObjectDemo01 {
    public static void main(String[] args) {

        /*
           Class<?> getClass()  返回类的信息（返回引用的实际类型）
         */
        Object o = new Object();
        System.out.println(o.getClass());

        Object st = new Student();
        System.out.println(st.getClass());

        Object t = new Teacher();
        System.out.println(t.getClass());
    }
}
